<template>
    <div>
        <button @click="getStudent">获取学生信息</button>
    </div>
</template>

<script>
    import axios from 'axios';

    export default {
        name: 'App',
        methods: {
            getStudent() {
                axios.get('http://localhost:8080/test/cicd/queryOldTaskByProject')
                    .then(
                        res => {
                            // 成功的回调
                            console.log('请求成功了', res.data)
                        },
                        error => {
                            // 失败的回调
                            console.log('请求失败了', error.msg)
                        })
            }
        }
    }
</script>

<style>

</style>
